package com.xj.demo.string;

public class StringExer1 {
    public static void main(String[] args) {
        String s1 = new String("1") + new String("1");;
        String s2 = s1.intern();
        System.out.println(s1 == "11");
        System.out.println(s2 == "11");
    }
}
